﻿using System.Data;
using WyUnity.Data.DataAccess;

namespace WyUnity.Data.TableMapper
{
	/// <summary>
	/// 可映射的对象
	/// </summary>
	public interface IMapObject
	{
		/// <summary>
		/// 从数据读取器中加载数据
		/// </summary>
		void LoadData(IDataReader dataReader);

		/// <summary>
		/// 获取SQL片段
		/// </summary>
		string GetSQLClip(ISqlDialect dialect);
	}
}